<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <title>我的需求-{$tpshop_config['shop_info_store_title']}</title>
    <meta name="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
    <meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
    <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
    <link rel="stylesheet" href="__STATIC__/css/myuser.css" type="text/css">
</head>

<body>
<!--------头部开始-------------->
<include file="Public/header" />
<include file="Public/topnav" />
<!--------头部结束-------------->

<div class="page_pad">
  <div class="page_margin">
    <div class="page_radius page_hidden">
      <div class="page_padin">
        <div class="user_page">
          <div class="user_poi">当前位置：首页 &gt; <span>我的需求</span></div>
          <div class="user_left">
            <include file="User/userleft" />
          </div><!--user_left-->

          <div class="user_right">
            <div class="order_page">
              <div class="uright_tabs">
                <ul>
                  <li><a class="on" href="javascript:void(0)">我的需求</a></li>
                  <div class="clear"></div>
                </ul>
              </div>
              
              <div class="order_ul order_list">
                <div class="order_ttable order_ttable2">
                <table>
                  <tr class="tabfirst">
                    <td width="140">ID</td>
                    <td width="340">提交时间</td>
                    <td width="160">类型</td>
                    <!--<td width="160">状态</td>-->
                    <td width="160">
                      <div class="order_ttli">
                        <div class="h1">状态</div>
                        <div class="order_ttli_in">
                          <ul>
                            <li><a href="{:U('my_ask_buy')}">全部</a></li>
                            <!--<li><a href="{:U('order_list',array('status_id'=>1))}">求购待确认</a></li>-->
                            <li><a href="{:U('my_ask_buy',array('status_id'=>1))}">待处理</a></li>
                            <li><a href="{:U('my_ask_buy',array('status_id'=>2))}">已处理</a></li>
                          </ul>
                        </div>
                      </div>
                    </td>
                    <td>操作</td>
                  </tr>
                  <!------------------------------->
                  <foreach name="lists" item="v" key="k">
                  <tr>
                    <td>{$v.id}</td>
                    <td>{$v.add_time|date='Y-m-d H:i',###}</td>
                    <td><if condition="$v[xtype] eq 2">卖店<else/>买店</if></td>
                    <td>
                    <php>if($v[status]==0){</php>
                     未处理
                    <php>}elseif($v[status]==1){</php>
                      已处理
                    <php>} </php>
                    </td>
                    <td>
                      <a href="{:U('/Home/User/my_ask_buy_detail',array('id'=>$v[id]))}">查看详情</a>
                    </td>
                  </tr>
                  </foreach>
                  <!------------------------------->
                </table>
                </div>
                <div>{$page}</div>
                <!------------------------------->
              </div><!--order_list-->
            </div><!--order_page-->
          </div><!--user_right-->
          <div class="clear"></div>
        </div><!--user_page-->
      </div><!--page_padin-->
    </div><!--page_radius-->
  </div><!--page_margin-->
</div><!--page_pad-->

<!--------footer-开始-------------->
<include file="Public/footer" />
<!--------footer-结束-------------->



<script>
    $(document).ready(function(){
        $(".order_ttli").mousemove(function(){
            $(this).find(".order_ttli_in").show();
        });

        $(".order_ttli").mouseout(function(){
            $(this).find(".order_ttli_in").hide();
        });
    });
</script>

</body>
</html>